package com.sx.epidemic_system.controller;

import com.sx.epidemic_system.entity.CountryVo;
import com.sx.epidemic_system.entity.MapValue;
import com.sx.epidemic_system.service.CountryService;
import com.sx.epidemic_system.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class CountryController {
    @Autowired
    private CountryService countryService;

    @ResponseBody
    @RequestMapping("/getBaseWorldData")
    public CountryVo getBaseWorldData(){
        return countryService.baseWorldData();
    }


    @ResponseBody
    @RequestMapping("/getWorldMapConfirm")
    public List<MapValue> getWorldMapConfirm(){
        List<MapValue> list=countryService.queryWorldConfirm();
        return list;
    }

    @ResponseBody
    @RequestMapping("/getWorldMapNowConfirm")
    public List<MapValue> getWorldMapNowConfirm(){
        List<MapValue> list=countryService.queryWorldNowConfirm();
        return list;
    }
}
